package com.cxm.weilai.util;

import java.util.HashMap;
import java.util.Map;

/**
 * map 参数Builder工具类
 * @author jackie.cheng
 */
public class MapParamsBuilder {

    private Map<String, String> mapParams;


    /**
     * 获取构造参数map
     */
    public Map<String, String> getMapParams() {
        return mapParams;
    }

    /**
     * 返回map参数Builder
     */
    public MapParamsBuilder addParamValue(String key, String value) {
        if (null == mapParams) {
            mapParams = new HashMap<String, String>();
        }
        mapParams.put(key, value);
        return this;
    }

}
